package cn.kgc.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * Created by teacher ZHANG on 2022/11/14
 */
@Data
//实体类与表名绑定
@TableName("category")
public class Category  implements Serializable {
    //主键，自增
    @TableId(type = IdType.AUTO)
    private Integer categoryId;
    private String categoryName;
}
